package utils.file;

public enum FileTypeHexEnum {
    JPG("jpg","FFD8FF","JPEG (jpg)"),
    PNG("png","89504E47","PNG (png)"),
    GIF("gif","47494638","GIF (gif)"),
    TIF("tif","49492A00","TIFF (tif)"),
    BMP("bmp","424D","Windows Bitmap (bmp)"),
    DWG("dwg","41433130","CAD (dwg)"),
    HTML("html","68746D6C3E","HTML (html)"),
    RTF("rtf","7B5C727466","Rich Text Format (rtf)"),
    XML("xml","3C3F786D6C","xml"),
    ZIP("zip","504B0304","zip"),
    RAR("rar","52617221","rar"),
    PSD("psd","38425053","PhotoShop (psd)"),
    EML("eml","44656C69766572792D646174653A","Email"),
    DBX("dbx","CFAD12FEC5FD746F","Outlook Express (dbx)"),
    PST("pst","2142444E","Outlook (pst)"),
    XLS("xls","D0CF11E0","MS Word"),
    DOC("doc","D0CF11E0","MS Excel 注意：word 和 excel的文件头一样"),
    MDB("mdb","5374616E64617264204A","MS Access (mdb)"),
    WPD("wpd","FF575043","WordPerfect (wpd)"),
    EPS("eps","252150532D41646F6265","eps"),
    PS("ps","252150532D41646F6265","ps"),
    PDF("pdf","255044462D312E","Adobe Acrobat (pdf)"),
    QDF("qdf","AC9EBD8F","Quicken (qdf)"),
    PWL("pwl","E3828596","Windows Password (pwl)"),
    WAV("wav","57415645","Wave (wav)"),
    AVI("avi","41564920","avi"),
    RAM("ram","2E7261FD","Real Audio (ram)"),
    RM("rm","2E524D46","Real Media (rm)"),
    MPG("mpg","000001BA","mpg"),
    MOV("mov","6D6F6F76","QuickTime (mov)"),
    ASF("asf","3026B2758E66CF11","Windows Media (asf)"),
    MID("mid","4D546864","MIDI (mid)"),
    ;
    private String type;
    private String hex;
    private String desc;

    public String getType() {
        return type;
    }

    public String getHex() {
        return hex;
    }

    public String getDesc() {
        return desc;
    }

    FileTypeHexEnum(String type, String hex, String desc) {
        this.type = type;
        this.hex = hex;
        this.desc = desc;
    }
}
